package com.itheima.stock.mapper;

import com.itheima.stock.pojo.domain.SysInfoById;
import com.itheima.stock.pojo.domain.SysUserMultipleConditionDomain;
import com.itheima.stock.pojo.entity.SysUser;
import org.apache.ibatis.annotations.Param;

import java.util.Date;
import java.util.List;

/**
* @author Administrator
* @description 针对表【sys_user(用户表)】的数据库操作Mapper
* @createDate 2024-07-21 11:07:01
* @Entity com.itheima.stock.pojo.entity.SysUser
*/
public interface SysUserMapper {


    int deleteByPrimaryKey(Long id);

    int insert(SysUser record);

    int insertSelective(SysUser record);

    SysUser selectByPrimaryKey(Long id);

    int updateByPrimaryKeySelective(SysUser record);

    int updateByPrimaryKey(SysUser record);

    SysUser findByUserName(@Param("userName") String userName);

    List<SysUserMultipleConditionDomain> getUserList(@Param("username") String username, @Param("nickName") String nickName, @Param("startTime") String startTime, @Param("endTime") String endTime,@Param("status") String status);

        int AddUserInfo(@Param("id") String id, @Param("username") String username, @Param("password") String password, @Param("phone") String phone, @Param("email") String email, @Param("nickName") String nickName, @Param("realName") String realName, @Param("sex") String sex, @Param("createWhere") String createWhere, @Param("status") String status, @Param("createTime") Date createTime);

    SysInfoById getUserInfoById(@Param("userId") Long userId);

    int updateUserInfoById(@Param("username") String username, @Param("phone") String phone, @Param("email") String email, @Param("nickName") String nickName, @Param("realName") String realName, @Param("sex") Integer sex, @Param("createWhere") String createWhere, @Param("status") Integer status,@Param("id") Long id);

}
